package com.dreamlike.demo;

import com.dreamlike.demo.HttpUtil.Annotation.Core.Request;
import com.dreamlike.demo.HttpUtil.Annotation.Param.HeaderParam;
import com.dreamlike.demo.HttpUtil.Annotation.Param.RequestBody;
import com.dreamlike.demo.HttpUtil.Annotation.Param.RequestParam;
import com.dreamlike.demo.HttpUtil.Enum.ContentType;
import com.dreamlike.demo.HttpUtil.Enum.RequestMethod;
import com.dreamlike.demo.HttpUtil.SpringCore.Annotation.HttpComponent;

import java.util.List;
import java.util.Map;

@HttpComponent
public interface HttpTest {

    @Request(baseUri = "http://localhost:8080/headers", responseContentType = ContentType.APPLICATION_FORM_URLENCODED)
    A get(@HeaderParam("dreamlike") String a, @RequestParam String b, @HeaderParam String c);

    @Request(baseUri = "http://localhost:8080/post", requestContentType = ContentType.APPLICATION_JSON,method = RequestMethod.POST)
    List<A> post(@RequestBody A a);

}


